<!DOCTYPE html>
<html>
<head>
<?php include_once VIEWS.'inc/head.php'; ?>
<?php
	echo static_file('web/js/WdatePicker.js');
	echo static_file('web/js/zh-cn.js');
	echo static_file('web/js/calendar.js');
	
	echo static_file('web/css/swiper-3.3.1.min.css');
	echo static_file('web/js/swiper-3.3.1.min.js');
?>

</head>

<body>
	<div class="main">
		<?php include_once VIEWS.'inc/header.php'; ?>
		<section class="sales">
			<div class="abanner">
				<img src="<?php echo static_file('web/img/online_banner.jpg')?>" alt="">
			</div>

			<div class="sales_box w1440">
				<div class="title wow fadeInUp">
					<div class="cn">网上报修</div>
					<div class="en">Online revision</div>
				</div>

				<div class="form wow fadeInUp">
					<form action="">
						<div class="input_group f-cb">
							<div class="input">
								<label for=""><span>*</span>姓 名：</label>
								<input type="text" class="text">
							</div>
							<div class="input">
								<label for=""><span>*</span>联系方式：</label>
								<input type="text" class="text">
							</div>
							<div class="input">
								<label for=""><span>*</span>填写验证码：</label>
								<div class="input_box f-cb">
									<input type="text">
									<input type="button" value="获取验证码" class="btn">
								</div>
							</div>
						</div>

						<div class="input_group f-cb">
							<div class="input">
								<label for="">品牌：</label>
								<select name="" id="" class="text select">
									<option value="太阳能热水器">太阳能热水器</option>
								</select>
							</div>
							<div class="input">
								<label for=""><span>*</span>购买机型：</label>
								<input type="text" class="text">
							</div>
							<div class="input">
								<label for=""><span>*</span>安装日期：</label>
								<input type="text" class="text date"  name="d_starttime" onclick="WdatePicker()">
							</div>
						</div>

						<div class="input_group f-cb">
							<div class="input_box2 input">
								<label for="">所在区域：</label>
								<div class="select_box f-cb">
									<div class="select_item">
										<select name="" id="" class="text select">
											<option value="请选择省份">请选择省份</option>
										</select>
									</div>
									<div class="select_item">
										<select name="" id="" class="text select">
											<option value="请选择城市">请选择城市</option>
										</select>
									</div>
									<div class="select_item">
										<select name="" id="" class="text select">
											<option value="请选择区域">请选择区域</option>
										</select>
									</div>
								</div>
							</div>
							<div class="input">
								<label for="">详细地址</label>
								<input type="text" class="text">
							</div>
						</div>
						

						<div class="input_group f-cb">
							<div class="input w100">
								<label for="" class="dib"><span>*</span>购买方式：</label>
								<div class="choose">
									<div class="choose1">
										<label for="id1">
											<input type="radio" name="buy" id="id1" checked="true">线下购买
										</label>
									</div>
									<div class="choose1">
										<label for="id2">
											<input type="radio" name="buy" id="id2" >线上购买
										</label>
									</div>
								</div>
							</div>
						</div>
						
						<div class="form_bot">
							<div class="input_group f-cb file">
								<div class="input fl">
									<label for="">上传发票：</label>
									<div class="input_box f-cb input_box2">
										<input type="text" class="text">
										<input type="file" class="file_form">
									</div>
								</div>	
								<div class="input fr">
									<label for="">上传照片：</label>
									<div class="input_box f-cb input_box2">
										<input type="text" class="text">
										<input type="file" class="file_form">
									</div>
								</div>	
							</div>


							<div class="input_group f-cb">
								<div class="input w100">
									<label for="">问题描述 ：</label>
									<textarea name="" id="" class="textarea text"></textarea>
								</div>	
							</div>
							

							<div class="input_group f-cb input_group3">
								<label for="">验 证 码：</label>
								<div class="fb f-cb">
									<div class="input mr2">	
										<input type="text" class="text">
									</div>	
									<div class="code">
										<img src="<?php echo static_file('web/img/captcha.gif')?>" alt="">
									</div>
								</div>
							</div>
							
							<input type="submit" value="提交" class="submit">
						</div>
						
					</form>
				</div>
			</div> 
		</section>
    	<?php include_once VIEWS.'inc/footer.php'; ?>
	</div>
	<script>
		$(function(){
			$('header .bocweb-nav ul li').eq(5).addClass('active');

			$('.btn').click(function(){
				t=60;
				$('.btn').val('重新发送'+t);
				timer=setInterval(function(){
					if(t<=1){
						$('.btn').val('获取验证码').prop('disabled',false);
							clearInterval(timer)
						
					}else{
						t--;
						$('.btn').val('重新发送'+t).prop('disabled',true);
					}
				},1000)	
			})
		})
	</script>
</body>
</html>
